﻿* Encoding: UTF-8.

*Nonparametric Tests: One Sample. 

USE ALL.
COMPUTE filter_$=(Q97=1).
VARIABLE LABELS filter_$ 'Q97=1 (FILTER)'.
VALUE LABELS filter_$ 0 'Not Selected' 1 'Selected'.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

NPTESTS 
  /ONESAMPLE TEST (ABUSE_JN) BINOMIAL(TESTVALUE=0.5 CLOPPERPEARSON SUCCESSCATEGORICAL=LIST(1) 
    SUCCESSCONTINUOUS=CUTPOINT(MIDPOINT)) 
  /MISSING SCOPE=ANALYSIS USERMISSING=EXCLUDE
  /CRITERIA ALPHA=0.05 CILEVEL=95.

NPTESTS 
  /ONESAMPLE TEST (Polyornot) BINOMIAL(TESTVALUE=0.5 CLOPPERPEARSON SUCCESSCATEGORICAL=LIST(2) 
    SUCCESSCONTINUOUS=CUTPOINT(MIDPOINT)) 
  /MISSING SCOPE=ANALYSIS USERMISSING=EXCLUDE
  /CRITERIA ALPHA=0.05 CILEVEL=95.


USE ALL.
COMPUTE filter_$=(Q97=2).
VARIABLE LABELS filter_$ 'Q97=2 (FILTER)'.
VALUE LABELS filter_$ 0 'Not Selected' 1 'Selected'.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

NPTESTS 
  /ONESAMPLE TEST (ABUSE_JN) BINOMIAL(TESTVALUE=0.5 CLOPPERPEARSON SUCCESSCATEGORICAL=LIST(1) 
    SUCCESSCONTINUOUS=CUTPOINT(MIDPOINT)) 
  /MISSING SCOPE=ANALYSIS USERMISSING=EXCLUDE
  /CRITERIA ALPHA=0.05 CILEVEL=95.


NPTESTS 
  /ONESAMPLE TEST (Polyornot) BINOMIAL(TESTVALUE=0.5 CLOPPERPEARSON SUCCESSCATEGORICAL=LIST(2) 
    SUCCESSCONTINUOUS=CUTPOINT(MIDPOINT)) 
  /MISSING SCOPE=ANALYSIS USERMISSING=EXCLUDE
  /CRITERIA ALPHA=0.05 CILEVEL=95.

